<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab">
                <span>
                    <a href="{:U('home/index/wenda')}">全部</a>
                    <a href="{:U('home/index/wenda',array('status'=>0))}">未结帖</a>
                    <a href="{:U('home/index/wenda',array('status'=>1))}">已采纳</a>
                    <a href="{:U('home/index/wenda',array('status'=>2))}">精帖</a>
                    <?php if (isset($_SESSION['username'])) { ?>
                    <a href="{:U('home/user/myuser')}">我的帖</a>
                    <?php } ?>
                </span>
                <form action="{:U('home/pscws4/index')}" class="fly-search">
                    <i class="iconfont icon-sousuo">
                    </i>
                    <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                    type="text" name="q">
                </form>
                <?php if (isset($_SESSION['username'])) { ?>
                   <a href="{:U('home/Question/index')}" class="layui-btn jie-add">发布问题</a>
                <?php } ?>
            </div>
            <ul class="fly-list">
            <?php foreach ($quanbu as $q) { ?>
                <li class="fly-list-li">
                    <a href="{:U('home/user/my',array('id'=>$q['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__{$q['face']}" alt="lostincoding">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('home/question/question',array('id'=>$q['id']))}">
                            {$q['title']}
                        </a>
                        <?php if ($q['is_top']==1) { ?>
                          <span class="fly-tip-stick">
                            置顶
                        </span>  
                        <?php } ?>
                        <?php if ($q['is_jing']==1) { ?>
                        <span class="fly-tip-jing">
                            精贴
                        </span>
                        <?php } ?>
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('home/user/my',array('id'=>$q['uid']))}">
                                {$q['username']}
                            </a>
                        </span>
                        <span>
                            <?php echo run($q['create_time'])?>
                        </span>
                        <span>
                            {$q['cname']}
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            {$q['answer_num']}
                            <i class="iconfont" title="人气">
                                &#xe60b;
                            </i>
                            {$q['view_num']}
                        </span>
                    </p>
                </li>
            <?php }?>

            </ul>
            <div style="text-align: center">
                <div class="laypage-main">
                    <a href="{:U('home/index/wenda',array('p'=>1))}" class="laypage-next">
                        更多求解
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="edge">
        <h3 class="page-title">
            最近一月回答榜 - TOP 12
        </h3>
        <div class="user-looklog leifeng-rank">
            <span>
            <?php foreach ($yueTop as $t) { ?>
                <a href="{:U('home/user/my',array('id'=>$t['id']))}">
                    <img src="__ROOT__{$t['face']}">
                    <cite>
                        {$t['username']}
                    </cite>
                    <i>
                        {$t['num']}次回答
                    </i>
                </a>
            <?php } ?>
            </span>
        </div>
        <h3 class="page-title">
            最近热帖
        </h3>
        <ol class="fly-list-one">
        <?php foreach ($syzuijinhot as $h) { ?>
            <li>
                <a href="{:U('home/question/question',array('id'=>$h['id']))}">
                    {$h['title']}
                </a>
                <span>
                    <i class="iconfont">
                        &#xe60b;
                    </i>
                    {$h['view_num']}
                </span>
            </li>
        <?php } ?>
        </ol>
        <h3 class="page-title">
            近期热议
        </h3>
        <ol class="fly-list-one">
        <?php foreach ($syzuijinhotyi as $y) { ?>
            <li>
                <a href="{:U('home/question/question',array('id'=>$y['id']))}">
                    {$y['title']}
                </a>
                <span>
                    <i class="iconfont">
                        &#xe60c;
                    </i>
                    {$y['answer_num']}
                </span>
            </li>
        <?php } ?>
        </ol>
        <div class="fly-link">
            <span>
                友情链接：
            </span>
            <a href="http://layim.layui.com/" target="_blank">
                LayIM
            </a>
            <a href="http://layer.layui.com/" target="_blank">
                layer
            </a>
            <a href="http://www.ttlutuan.com" target="_blank">
                天天撸团
            </a>
            <a href="http://www.hotcn.top/" target="_blank">
                国际热点
            </a>
            <a href="http://www.bejson.com/" target="_blank">
                JSON在线工具
            </a>
            <a href="http://www.smeoa.com/" target="_blank">
                小微OA
            </a>
            <a href="http://www.pmsun.me/" target="_blank">
                PHP博客
            </a>
            <a href="http://www.hibug.cn/" target="_blank">
                在线Bug管理
            </a>
        </div>
    </div>
</div>
